package cn.edu.ncc.service.impl;

import cn.edu.ncc.Student;
import cn.edu.ncc.dao.IStudentDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("studentService")
public class StudentServiceImpl implements IStudentService {
    @Autowired
    IStudentDao studentDao;
    @Override
    public List<Student> findAll() {
        System.out.println("service is running.....");
        return studentDao.findAll();//调用dao层方法
        //return null;
    }
}